<?php
/* Smarty version 3.1.30, created on 2016-12-04 20:31:39
  from "D:\wamp64\www\smartyone\blog\templates\edit.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_58440cab1c5aa6_61052737',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'c1eb08d6d6b5729bf1bd2d29c1704037dc902bde' => 
    array (
      0 => 'D:\\wamp64\\www\\smartyone\\blog\\templates\\edit.html',
      1 => 1480854697,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_58440cab1c5aa6_61052737 (Smarty_Internal_Template $_smarty_tpl) {
?>
<!DOCTYPE html static "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>武汉长乐教育PHP课程-博客系统开发</title>
    <link href="../static/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
    <div id="innerHeader">
        <div id="blogLogo"></div>
        <div class="blog-header">
            <div class="blog-title"><IMG SRC="../static/images/logo.png"  style="border:1px solid gray" BORDER="0" ALT="" align="absmiddle"> <a href="http://www.whphp.com">WHPHP</a></div>
            <div class="blog-desc">武汉长乐教育PHP课程-博客系统开发</div>
        </div>
        <div id="menu">
            <ul>
                <li><a href="">日志首页</a></li>
                <li><a href="">撰写日志</a></li>
                <li><a href="">官方网站</a></li>
            </ul>
        </div>
    </div>
</div>

<div id="mainWrapper">
    <div id="content" class="content">
        <div id="innerContent">
            <div class="commentbox">
                <TABLE cellpadding=3 cellspacing=3 width="680px">
                    <TR>
                        <TD colspan="2"><div class="block-title"><H5><IMG SRC="../static/images/modify.gif" WIDTH="20" HEIGHT="23" BORDER="0" ALT="" align="absmiddle"> 编辑日志</H5></div>
                        </TD>
                    </TR>
                    <TR>
                        <TD colspan="2">
                            <form METHOD=POST id="form1" action="edit.php?id=<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?>
">
                                <TABLE cellpadding=3 cellspacing=3 width="100%" style="font-size:14px">
                                    <TR>
                                        <TD colspan="2"><div id="result" class="result none"></div></TD>
                                    </TR>
                                    <TR>
                                        <TD class="tRight tTop" width="125px">标题：</TD>
                                        <TD class="tLeft"><input TYPE="text" class="huge text" check='Require' warning="标题不能为空" NAME="title" value="<?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
"></TD>
                                    </TR>
                                    <TR>
                                        <TD class="tRight" >分类：</TD>
                                        <TD class="tLeft" >
                                            <select name="category_id" id="">
                                                <!--如果 分类的id 等于 文章的category_id  就 给他一个selected-->
                                                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['category']->value, 'v');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['v']->value) {
?>
                                                <option value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"

                                                <?php if ($_smarty_tpl->tpl_vars['v']->value['id'] == $_smarty_tpl->tpl_vars['article']->value['category_id']) {?>
                                                selected
                                                <?php }?>
                                                ><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</option>
                                                <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

                                            </select>
                                        </TD>
                                    </TR>
                                    <TR>
                                        <TD class="tRight tTop" >日志：</TD>
                                        <TD class="tLeft"><textarea name="content" id="textContent" cols="45" rows="5"><?php echo $_smarty_tpl->tpl_vars['article']->value['content'];?>
</textarea></TD>
                                    </TR>
                                   
                                    <TR>
                                        <TD ></TD>
                                        <TD class="center">
                                            <div style="width:85%;color:gray">
                                                <input TYPE="hidden" name="ajax" value="1">
                                                <input TYPE="hidden" name="id" value="{$vo.id}">
                                                <div class="fLeft hMargin"><input TYPE="reset" class="submit small"  value="重 置" ></div>
                                                <div class="fLeft hMargin">
                                                    <input TYPE="submit" id="submit" value="保存日志"  class="submit small">
                                                </div>
                                            </div></TD>
                                    </TR>
                                </TABLE>
                            </form>
                            
                        </TD>
                    </TR>
                </TABLE>
            </div>
        </div>
   <!-- 版权信息区域 -->
    <div id="footer" class="footer" >
        <div id="innerFooter">Powered by 武汉长乐教育 |  <a target="_blank" href="http://www.whphp.com">whphp</a></div>
    </div>
</body>
</html><?php }
}
